package com.asia.bomc.workflow.dao;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.asia.bomc.workflow.entity.BomcUser;
@Component(value="userDao")
public class UserDaoImp extends AbstractBaseDao<BomcUser,String> {
	public BomcUser findByUserName(String userName){
		Map<String,Object> params = new HashMap<String,Object>();
		params.put("bomcUserId", userName);
		return findByJpql(BomcUser.class,"SELECT u FROM BomcUser u WHERE u.bomcUserId=?", params).get(0);
	}
}
